updating oE new
new
include datetime.e --(default namespace is datetime) public function new(integer year = 0, integer month = 0, integer day = 0, integer hour = 0, integer minute = 0, atom second = 0)
creates a new datetime value from program-supplied date and time
Parameters:
- year -- the full year.
- month -- the month (1-12).
- day -- the day of the month (1-31).
- hour -- the hour (0-23) (defaults to 0)
- minute -- the minute (0-59) (defaults to 0)
- second -- the second (0-59) (defaults to 0)
Example 1:
include std/datetime.e datetime dt = new(2019, 12, 30, 0, 0, 0) -- Dec 30, 2019 ? dt
Result:
{2019,12,30,0,0,0}
See Also:
Not Categorized, Please Help
|